var loginVue = new Vue({
	el: "body",
	data: {
		userName: "",
		userPwd: "",
	},
	created: function() {
		init();
	},
	methods: {
		login: function() {
			if(this.userName.trim().length == 0 || this.userPwd.trim().length == 0) {} else {
				AV.User.logIn(this.userName, this.userPwd).then(function(loginedUser) {
					currentUser = AV.User.current();
					var href1 = getUrlItem(location.search, "RetUrl");
					if(href1) {
						var path = href1.split(".")
						var href = "../" + path[0] + "/" + href1;
					} else {}
					location.href = href ? href : "../index/index.html";
				}, function(error) {
					alert(JSON.stringify(error));
				});
			}
		}
	}
})